//
//  SignUtil.m
//  Rong360
//
//  Created by tianliwei on 19/2/14.
//  Copyright (c) 2014 tianliwei. All rights reserved.
//

#import "SignUtil.h"
#import "MD5Util.h"
@implementation SignUtil

+ (NSString *)stringFromURL:(NSString *)urlStr{
    NSArray *array = [[urlStr componentsSeparatedByString:@"&"]sortedArrayUsingSelector:@selector(compare:)];
    NSMutableString *finalStr = [NSMutableString string];
    for (NSString *str in array) {
        [finalStr appendString:str];
    }
    [finalStr appendString:TokenKey];
    NSLog(@"===Token:%@",[MD5Util md5:finalStr]);
    return [MD5Util md5:finalStr];
}

@end
